package springDB;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import txxml.Dao;

public class test {
	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"applicationContexttx.xml"});
		BeanFactory factory = context.getBeanFactory();
		/*AccountService account = (AccountService) factory.getBean("accountService");
		account.transfer("jack", "rose", 500);*/
		
		/*UserDao dao = context.getBean(UserDao.class);
		dao.select();*/
		
		/*UserDaoParmeter bean = context.getBean(UserDaoParmeter.class);
		bean.test();*/
		
		Dao bean = (Dao) context.getBean("dao");
		bean.find();
	}
}
